package com.ybn.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class VoteOption {
    private static final long serialVersionUID = 1L;
    @TableId(value = "VO_ID",type = IdType.AUTO)
    private int Void;

    @TableField("VO_OPTION")
    private String vooption;

    @TableField("VS_ID")
    private int vsid;

    @TableField("VO_ORDER")
    private int voorder;

    @TableField(exist = false)
    private List<VoteItem> items = new ArrayList<>();
}
